package com.ayun.member.service;

import com.ayun.base.Result;
import com.ayun.member.entity.Staff;
import com.ayun.member.req.StaffREQ;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 斌叔
 * @since 2022-05-09
 */
public interface IStaffService extends IService<Staff> {
    Result login(String username, String password);

    Result search(long page, long size, StaffREQ req);

    Result add(Staff staff);

    /*** 通过token获取用户信息 */
    Result getUserInfo(String token);
}
